Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: Compatible with the SPI 、saga、spring module #6427

Merged
merged 27 commits into from
Apr 11, 2024

Conversation

wt-better
Copy link
Contributor

@wt-better wt-better commented Mar 16, 2024

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

fixes #6428

  1. Compatible with the SPI module, loads all extensions of io.seata and apache seata, and ensures that io.seata takes precedence under the same name. It should be noted that if the io.seata compatible interface is not inherited from apache.seata, only apache will be loaded. extension of seata

  2. Compatible with saga module and add related single tests

  3. Compatible with the enableDatasourceProxy annotation and GlobalTransactionScaner of the spring module


1、兼容SPI模块,加载io.seata和apache seata的所有扩展,并且保证相同名称下io.seata优先,需要注意的是如果io.seata兼容的接口不是继承自apache.seata,仅会加载apache.seata的扩展

2、兼容saga模块,增加相关单测

3、兼容spring模块的enableDatasourceProxy注解和GlobalTransactionScaner

@wt-better wt-better changed the title Feature/saga com optimize: Compatible with the SPI 、saga、spring module Mar 16, 2024
@wt-better wt-better requested review from ptyin and funky-eyes and removed request for ptyin March 16, 2024 10:22
@wt-better wt-better requested a review from slievrly March 16, 2024 12:03
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2024

Codecov Report

Attention: Patch coverage is 47.61905% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 50.90%. Comparing base (a24a43e) to head (a7563b9).
Report is 2 commits behind head on 2.x.

❗ Current head a7563b9 differs from pull request most recent head e298bae. Consider uploading reports for the commit e298bae to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6427      +/-   ##
============================================
+ Coverage     50.26%   50.90%   +0.64%     
- Complexity     5242     5285      +43     
============================================
  Files           942      942              
  Lines         33270    33215      -55     
  Branches       4030     4022       -8     
============================================
+ Hits          16722    16907     +185     
+ Misses        14929    14649     -280     
- Partials       1619     1659      +40     
Files Coverage Δ
...boot/autoconfigure/SeataSagaAutoConfiguration.java 0.00% <ø> (ø)
...ta/spring/annotation/GlobalTransactionScanner.java 9.72% <0.00%> (-0.19%) ⬇️
...che/seata/common/loader/EnhancedServiceLoader.java 70.73% <58.82%> (+10.73%) ⬆️

... and 44 files with indirect coverage changes

@funky-eyes funky-eyes added this to the 2.1.0 milestone Mar 16, 2024
Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@funky-eyes funky-eyes merged commit e72babb into apache:2.x Apr 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StateMachineDBTests UT failed
6 participants